//
//  JGTDaily.m
//  RunningMan
//
//  Created by JGT on 16/6/2.
//  Copyright © 2016年 WSJ. All rights reserved.
//

#import "JGTDaily.h"

@implementation JGTDaily
+ (JGTDaily *)parseDailyJson:(NSDictionary *)dic{
    
    return [[self alloc]parseDaliyJson:dic];
    
}
- (JGTDaily *)parseDaliyJson:(NSDictionary *)dic{
    self.date = dic[@"date"];
    self.max = [NSString stringWithFormat:@"%@",dic[@"tmp"][@"max"]];
    self.min = [NSString stringWithFormat:@"%@",dic[@"tmp"][@"min"]];
    self.iconUrl = [NSString stringWithFormat:@"http://files.heweather.com/cond_icon/%@.png",dic[@"cond"][@"code_d"]];
    return self;
    
}
@end
